package com.techsoul.module.baoli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.baoli.pojo.entity.FinCreditBill;
import com.techsoul.module.baoli.pojo.param.FinCreditBillSearchParam;
import com.techsoul.module.baoli.pojo.vo.FinCreditBillVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 企业白条主Mapper接口
 * 
 * @author liuen
 * @date 2022-03-28
 */
public interface FinCreditBillMapper extends BaseMapper<FinCreditBill> {

    /**
     * 详情
     * @param id
     * @return
     */
    FinCreditBillVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<FinCreditBillVo> findAll(@Param("params") FinCreditBillSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<FinCreditBillVo> findAll(Page page, @Param("params") FinCreditBillSearchParam params);

    Integer findTotalMyReceBill(@Param("site") String site,@Param("status") String status);
    Integer findTotalMyIssuedBill(@Param("site") String site,@Param("status") String status);
    Integer findTotalMyProcessBill(@Param("site") String site);
}
